import {myRequest} from "../utils/request.js"

export function carpool(data){
	return myRequest({
		url:"member_carpool/carpool",
		method: "post",
		data:data||{}
	})
}
export function detail(data){
	return myRequest({
		url:"member_carpool/detail",
		method: "post",
		data:data||{}
	})
}

//拼车-我的账户-金额详情
export function carAccount(data){
	return myRequest({
		url:'member_carpool/myAccount',
		method:'POST',
		data:data||{}
	})
}

//拼车-我的账户-购买配件记录
export function buyAccessoryList(data){
	return myRequest({
		url:'carpool_transaction/buyAccessoryList',
		method:'POST',
		data:data||{}
	})
}

// 拼车活动配置
export function carpoolingConfig(data) {
	return myRequest({
		url:"member_carpool/carpoolingConfig",
		method: "post",
		data:data||{}
	})
}

//拼车-我的账户-交易余额提现
export function carpoolBalanceWithdrawal (data) {
	return myRequest({
		url:"dao_balance_log/carpoolBalanceWithdrawal",
		method: "post",
		data:data||{}
	})
}

// 超级交付条件
export function superDeliveryCondition(data) {
	return myRequest({
		url:"member_carpool/superDeliveryCondition",
		method: "post",
		data:data||{}
	})
}

// 我拼车成功超级交付申请
export function superDelivery(data) {
	return myRequest({
		url:"member_carpool/superDelivery",
		method: "post",
		data:data||{}
	})
}
export function buyAccessoryGroup(data) {
	return myRequest({
		url:"carpool_transaction/buyAccessoryGroup",
		method: "post",
		data:data||{}
	})
}
export function sellAccessoryGroup(data) {
	return myRequest({
		url:"carpool_transaction/sellAccessoryGroup",
		method: "post",
		data:data||{}
	})
}
export function hallList(data) {
	return myRequest({
		url:"carpool_transaction/hallList",
		method: "post",
		data:data||{}
	})
}
export function carindex(data) {
	return myRequest({
		url:"member_carpool/index",
		method: "post",
		data:data||{}
	})
}
export function carinfo(data) {
	return myRequest({
		url:"carpool_installment/info",
		method: "post",
		data:data||{}
	})
}
export function carpayType(data) {
	return myRequest({
		url:"carpool_transaction/payType",
		method: "post",
		data:data||{}
	})
}
export function createOrder(data) {
	return myRequest({
		url:"carpool_transaction/createOrder",
		method: "post",
		data:data||{}
	})
}
export function orderList(data) {
	return myRequest({
		url:"carpool_transaction/orderList",
		method: "post",
		data:data||{}
	})
}
export function carforSale(data) {
	return myRequest({
		url:"Member_carpool_item/forSale",
		method: "post",
		data:data||{}
	})
}
export function deliveryQueue(data) {
	return myRequest({
		url:"member_carpool/deliveryQueue",
		method: "post",
		data:data||{}
	})
}
// 拼完分奖
export function bonusPage(data) {
	return myRequest({
		url:"carpool_complete_bonus/page",
		method: "post",
		data:data||{}
	})
}
// 领到钱包
export function bonusReceive(data) {
	return myRequest({
		url:"carpool_complete_bonus/receive",
		method: "post",
		data:data||{}
	})
}
export function Numindex(data) {
	return myRequest({
		url:"matching_number/index",
		method: "post",
		data:data||{}
	})
}
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------

// 玩法介绍 
export function gameDescription(data) {
	return myRequest({
		url: 'carpool_information/gameDescription',
		method: "POST",
		data:data||{}
	})
}
// vip等级
export function vipDescription(data) {
	return myRequest({
		url: 'carpool_information/vipDescription',
		method: "POST",
		data:data||{}
	})
}

// 有无拼车记录 
export function judgeCar(data) {
	return myRequest({
		url: 'member_carpool/carpoolingTarget',
		method: "POST",
		data:data||{}
	})
}
// 拼车navList
export function carpoolTarget(data) {
	return myRequest({
		url: 'carpool_installment/index',
		method: "POST",
		data:data||{}
	})
}
// 分类详情
export function installment(data) {
	return myRequest({
		url: 'carpool_installment/info',
		method: "POST",
		data:data||{}
	})
}
// 选择拼车
export function chooseTarget(data) {
	return myRequest({
		url: 'member_carpool/chooseTarget',
		method: "POST",
		data:data||{}
	})
}

//拼车首页
export function carIndexInfo(data) {
	return myRequest({
		url: 'member_carpool/index',
		method: "POST",
		data:data||{}
	})
}
//开盲盒
export function drawBlindBox(data) {
	return myRequest({
		url: 'carpool_box_record/drawBlindBox',
		method: "POST",
		data:data||{}
	})
}
//盲盒获奖记录
export function blindBoxRecord(data) {
	return myRequest({
		url: 'carpool_box_record/index',
		method: "POST",
		data:data||{}
	})
}
//排行榜
export function rankingList(data) {
	return myRequest({
		url: 'member_carpool/rankingList',
		method: "POST",
		data:data||{}
	})
}
//上次开奖记录
export function lastLotteryRecord(data) {
	return myRequest({
		url: 'matching_number/lastLotteryRecord',
		method: "POST",
		data:data||{}
	})
}

//重复选车
export function lastCarpool(data) {
	return myRequest({
		url: 'carpool_installment/lastCarpool',
		method: "POST",
		data:data||{}
	})
}
// 往期回顾
export function previousHistory(data) {
	return myRequest({
		url: 'installment_lottery/index',
		method: "POST",
		data:data||{}
	})
}
// 重置抽奖状态，供于流程结束
export function resetWinningStatus(data) {
	return myRequest({
		url: 'member_carpool/resetWinningStatus',
		method: "POST",
		data:data||{}
	})
}
export function lotteryNumber(data) {
	return myRequest({
		url: 'member_carpooling_card/lotteryNumber',
		method: "POST",
		data:data||{}
	})
}
export function carpoolAgainIndex(data) {
	return myRequest({
		url: 'member_carpool/carpoolAgainIndex',
		method: "POST",
		data:data||{}
	})
}
export function carpoolAgain(data) {
	return myRequest({
		url: 'member_carpool/carpoolAgain',
		method: "POST",
		data:data||{}
	})
}
export function wpindex(data) {
	return myRequest({
		url: 'member_carpooling_card/index',
		method: "POST",
		data:data||{}
	})
}
export function superDeliveryIndex(data) {
	return myRequest({
		url: 'member_carpool/superDeliveryIndex',
		method: "POST",
		data:data||{}
	})
}
export function currentMonthList(data) {
	return myRequest({
		url: 'member_carpooling_card/currentMonthList',
		method: "POST",
		data:data||{}
	})
}
